package org.example.constant;


public enum CodeEnum {

    SUCCESS(200, "成功"),
    FAIL(1, "失败"),
    ERROR(404, "数据不存在"),
    UNAUTHORIZED(401, "请重新登录"),
    NOTFIRSTTEST(1001, "基准数据不存在"),
    NOTREPEATDELETE(1002, "1RM记录为空"),
    ;

    private final Integer code;
    private final String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
